package lzy.service.impl;

import lzy.entity.ProcessingEquipment;
import lzy.mapper.ProcessingEquipmentMapper;
import lzy.service.ProcessingEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ProcessingEquipmentServiceImpl implements ProcessingEquipmentService {
    @Autowired
    private ProcessingEquipmentMapper mapper;

    @Override
    public List<ProcessingEquipment> findAll() {
        return mapper.findAll();
    }

    @Override
    public ProcessingEquipment findById(Integer equipId) {
        return mapper.findById(equipId);
    }

    @Override
    public void update(ProcessingEquipment equipment) {
        mapper.update(equipment);
    }

    @Override
    public int countAll() {
        return mapper.countAll();
    }
} 